# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=swaybg
pkgver=1.1.1
pkgrel=0
pkgdesc="Wallpaper daemon for Wayland"
url="https://swaywm.org/"
license="MIT"
arch="all"
makedepends="
	cairo-dev
	gdk-pixbuf-dev
	libxkbcommon-dev
	meson
	ninja
	scdoc
	wayland-dev
	wayland-protocols
	"
subpackages="$pkgname-doc"
source="https://github.com/swaywm/swaybg/archive/v$pkgver/swaybg-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
e5ac7af1690974206f916e1d99a8dde0e837acbc686e2de2c46d505201f239a059f998adc22192205d1ad75b5905222f16aed243b31920e19c0ff2229b8eda2c  swaybg-1.1.1.tar.gz
"
